Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache redirect proxies against root instances #67

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

devodo
Copy link
Owner

@devodo devodo commented Apr 2, 2023

Maintain a ConditionalWeakTable cache of Redirect proxy instances keyed against proxy root instances. If an existing proxy has been created from a Redirect with a root instance and another proxy is created with the same root instance then the same cached proxy instance is returned.

As well as being an optimisation the intention is that a system that has its instances replaced with proxies will behave more closely to the original e.g. in terms of instance equality.

@devodo devodo merged commit 7942cd3 into main Apr 2, 2023
@devodo devodo deleted the task/cache-redirect-proxies branch April 2, 2023 13:08
devodo added a commit that referenced this pull request Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant